package com.project.hqshorttaxi.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "B_RoleMenu")
public class RoleMenu implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private Integer id;

    /**
     * 权限ID
     */
    @Column(name = "RoleId")
    private Integer roleId;

    /**
     * 菜单ID
     */
    @Column(name = "MenuId")
    private Integer menuId;


    /**
     * 操作类型 0：允许全部操作，1：只能查看
     */
    @Column(name = "Type")
    private Integer type;

    /**
     * 创建时间
     */
    @Column(name = "CreateTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "UpdateTime")
    private Date updateTime;

    /**
     * 删除标识
     */
    @Column(name = "DeleteFlag")
    private Integer deleteFlag;
}
